import request from '@/utils/request'

export function listTeacherLevels() {
  return request({ url: '/system/teacher-level/list', method: 'get' })
}

export function getTeacherLevel(levelKey) {
  return request({ url: `/system/teacher-level/${levelKey}`, method: 'get' })
}

export function createTeacherLevel(data) {
  return request({ url: '/system/teacher-level', method: 'post', data })
}

export function updateTeacherLevel(id, data) {
  return request({ url: `/system/teacher-level/${id}`, method: 'put', data })
}

export function deleteTeacherLevel(id) {
  return request({ url: `/system/teacher-level/${id}`, method: 'delete' })
}


